.container {
  flex: 1;
  width: auto;
  height: 100%;
  min-height: calc(100vh - 100px);
  background-color: #f0f5f5;
}

.content {
  margin-top: 40px;
  margin-right: 40px;
  margin-left: 40px;
  > view {
    margin-bottom: 8px;
    &:first-child {
      border-top-left-radius: 24px;
      border-top-right-radius: 24px;
    }
    &:last-child {
      margin-bottom: 0;
      border-bottom-right-radius: 24px;
      border-bottom-left-radius: 24px;
    }
  }
}

.head {
  display: block;
  color: #333;
  font-weight: bold;
  font-size: 32px;
}
.subhead {
  color: #999;
  font-size: 24px;
}

// 文章元素样式
.articleItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px;
  background-color: #fff;
  > view {
    > text {
      &:nth-of-type(1) {
        .head;
      }
      &:nth-of-type(2) {
        .subhead;
      }
    }
    > view {
      margin-top: 38px;
      > text {
        color: #999;
        font-size: 24px;
      }
    }
  }
  > image {
    width: 224px;
    height: 168px;
    border-radius: 12px;
  }
}

// 视频元素样式
.videoItem {
  padding: 20px;
  background-color: #fff;
  > text {
    &:nth-of-type(1) {
      .head;
    }
    &:nth-of-type(2) {
      .subhead;
    }
  }
  > view {
    // 视频元素
    &:nth-of-type(1) {
      width: 100%;
      height: 354px;
      margin-top: 20px;
      margin-bottom: 30px;
      > video {
        width: 100%;
        height: 354px;
        border-radius: 24px;
      }
    }
    &:nth-of-type(2) {
      display: flex;
      align-items: center;
      justify-content: space-between;
      > text {
        color: #999;
        font-size: 24px;
      }
      > view {
        display: flex;
        align-items: center;
        justify-content: space-between;
        > text {
          &:nth-of-type(1) {
            margin-right: 10px;
            color: #333;
            font-size: 24px;
          }
          &:nth-of-type(2) {
            color: #f57878;
            font-size: 24px;
          }
        }
        > view {
          position: relative;
          // 控制Icon的样式
          display: inline-block;
          width: 60px;
          height: 30px;
          margin-right: 10px;
          > text {
            position: absolute;
            top: -2px;
            right: 10px;
            color: #333;
            font-size: 24px;
          }
          // 控制canvas样式
          > canvas {
            position: absolute;
            top: -35px;
            left: -70px;
            width: 200px;
            height: 100px;
          }
        }
      }
    }
  }
}
